class ThreadTask implements Runnable{
	public void run(){
		for(int i =0;i<100;i++){
			System.out.println(Thread.currentThread().getName()+":"+i);
		}
	}
}
public class RunnableDemo{
	 public static void main(String[] args){
		Thread t = new Thread(new ThreadTask());
		t.start();
        for(int i =1000;i<1100;i++){
        	System.out.println(Thread.currentThread().getName()+":"+i);
         }
	  }
   }

	
